package com.wasion.gydpe.dao.impl;

import java.util.Map;

import org.springframework.security.core.userdetails.User;
import org.springframework.stereotype.Repository;

import com.wasion.gydpe.dao.OperatorDao;
import com.wasion.gydpe.exception.DataAccessException;
import com.wasion.gydpe.model.Operator;

/**
 * 
 * @ClassName: BureauDaoImpl
 * @Description: 供电局数据访问层实现DaoImpl
 * @author 高意
 * @date Sep 25, 2012 8:41:13 AM
 * 
 */
@Repository
public class OperatorDaoImpl extends GenericMybatisDaoImpl<Operator, Long>
		implements OperatorDao {

	public OperatorDaoImpl() {
		this.sqlmapNamespace = "operator";
	}

	public User getUserByUsername(Map<String, Object> paramsMap)
			throws DataAccessException {

		return this.session.selectOne(this.sqlmapNamespace + ".selectOne",
				paramsMap);
	}
}
